#include<stdio.h>

int strlin(char ch[])
{
    int i = 0;
    for (; ch[i] != '\n'; i++){}
    return i;
}

int main(void)
{
    char ch1[100];
    fgets(ch1,100,stdin);
    printf("%d",strlin(ch1));
}